const { db } = require('../../db');

class CommentService {
    async getCommentsByPageService(ctx, { query, session, setOpts }) {
        const res = await db.model(ctx.modelName).find({ ...query, deletedAt: null }, null, { session, ...setOpts })
        return res;
    }
}

module.exports = new CommentService();